package com.codrim.cs.data.server.dao.entity;

import com.codrim.common.utils.bean.BeanUtils;
import com.codrim.cs.data.rpc.dto.result.WholeAffiliateDataDTO;

import java.io.Serializable;

import lombok.Data;

/**
 * @author Liang.Zhuge
 * @date 30/08/2017
 */
@Data
public class SummaryAffiliateData implements Serializable {
    private Integer affiliateId;
    private String symbol;

    private Integer clicks;
    private Integer uniqueClicks;
    private Integer grossConversions;
    private Integer conversions;
    private Integer scrubbedConversions;
    private Integer caps;

    private Float accessPrice;
    private Float putPrice;

    public WholeAffiliateDataDTO toWholeAffilidateData() {
        return BeanUtils.copyProperties(this, WholeAffiliateDataDTO.class);
    }
}
